import wsgiref.handlers

from google.appengine.ext import webapp

# OpenSocial Gifts imports
import admin
import game
import ogb

def main():
  """Map URLs to request handler classes and start the application."""
  application = webapp.WSGIApplication([('/admin', admin.AdminServer),
                                        ('/games', game.gameHandler),
										('/', ogb.Home)],
                                       debug=True)

  # Fire it up!
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()